package com.zhoug.aop;

import com.zhoug.aop.interfaces.ILoginFilter;

/**
 * 初始化
 * @Author 35574
 * @Date 2020/6/30
 * @Description
 */
public class AopLib {
    static boolean debug = false;

    /**
     * 登录验证接口
     */
    private static ILoginFilter loginFilter;

    public static void setDebug(boolean debug) {
        AopLib.debug = debug;
    }

    public static ILoginFilter getLoginFilter() {
        return loginFilter;
    }

    /**
     * 设置登录验证接口
     * @param loginFilter {@link ILoginFilter}
     */
    public static void setLoginFilter(ILoginFilter loginFilter) {
        AopLib.loginFilter = loginFilter;
    }
}
